// This wraps some native functions that are in Vista but not .Net
// see http://msdn2.microsoft.com/en-us/library/ms776368.aspx and
// http://msdn2.microsoft.com/en-us/library/system.runtime.interopservices.dllimportattribute(VS.71).aspx
using System;
using System.Text;
using System.Runtime.InteropServices;

namespace customcldr
{
    class VistaNative
    {
        public static String GetStringScripts(String TestString)
        {
            StringBuilder buffer = new StringBuilder(200);
            GetStringScripts(0, TestString, TestString.Length, buffer, buffer.Capacity);
            return buffer.ToString();
        }

        [DllImport("kernel32.dll", CharSet=CharSet.Unicode)]
        static extern Boolean GetStringScripts(
            UInt32 dwFlags, String lpString, Int32 cchString, StringBuilder lpScripts, Int32 cchScripts);
    }
}
